package com.whut.mapper;

import com.whut.model.Newfuzzyresult;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface NewfuzzyresultMapper {
    int deleteByPrimaryKey(Integer mKey);

    int insert(Newfuzzyresult record);

    int insertSelective(Newfuzzyresult record);

    Newfuzzyresult selectByPrimaryKey(Integer mKey);

    int updateByPrimaryKeySelective(Newfuzzyresult record);

    int updateByPrimaryKey(Newfuzzyresult record);

    int getCountByCheckIdAndType(int checkId, int type, int itemId);

    Newfuzzyresult getNewFuzzyResultByCheckIdAndType(int checkId, int type, int itemId);

    Newfuzzyresult getNewFuzzyResultByCheckIdAndItemId(int checkId, Integer itemId);

    /**
     * @author： wenyihan
     * @description：根据checkId和firstId=1获取安全检查下所有对应depth下的模糊数学评分
     * @date： 21:36 2021/1/4
     * @param： [checkId]
     * @return： java.util.List<com.whut.model.Newfuzzyresult>
    */
    List<Newfuzzyresult> getNewFuzzyInfoByCheckId(int checkId, int depth);

    List<Newfuzzyresult> getPointAndResultBycheck(@Param("checkId")Integer checkId);

    int updateSecondWeightbymkey(Newfuzzyresult record);

    List<Newfuzzyresult> getItemIdAndPointofDepth4(int checkId, int firstId);

    Float getFuzzPointByFourthidAndCheckId(int fourthId,int checkId);

    List<Newfuzzyresult> getItemIdAndPointofDepth1(int checkId, int firstId);
}